package com.newsmanagement.service;


import com.newsmanagement.entity.ReturnedMessages;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;

/**
 * @author xbr
 * 2017/12/4 16:29
 * 文件操作service接口
 */
public interface IFileService {

    /**
     * 上传文件信息
     * @param request
     * @param file 上传文件
     * @param upFilePath 存放文件的上几级文件路径
     * @return ReturnedMessages
     */
    ReturnedMessages uploadFile(HttpServletRequest request ,MultipartFile file ,String upFilePath);



}
